/**
 *
 *  家服公司模块
 ***/
import request from '@/utils/request'

// 获取家服所有公司列表
export const getcompanyList = () => {
  return request({
    method: 'GET',
    url: '/company'
  })
}

// 根据ID获取家服公司信息
export const getCompany = coId => {
  return request({
    method: 'GET',
    url: '/company',
    params: {
      coId
    }
  })
}

// 分页用
export const getCompanypage = params => {
  return request({
    method: 'GET',
    url: '/company',
    params
  })
}

// 获取企业资料
export const companyInfo = () => {
  return request({
    method: 'get',
    url: '/companyInfo'
  })
}

// 修改企业资料
export const getCompanyinfo = (data) => {
  return request({
    method: 'put',
    url: `/companyInfo/${data.id}`,
    data
  })
}
